package com.pro.service.imple;

import com.pro.mapper.JsMicrocircleMapper;
import com.pro.pojo.JsMicrocircle;
import com.pro.service.JsMicrocircleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class JsMicrocircleServiceImple implements JsMicrocircleService {
    @Autowired
    JsMicrocircleMapper jms;
    @Override
    public List<JsMicrocircle> getAllJsMicrocircle(JsMicrocircle param) {
        return jms.getAllJsMicrocircle(param);
    }

    @Override
    public Integer getCollectionBasedOnId(Integer microcircleId) {
        return jms.getCollectionBasedOnId(microcircleId);
    }

    @Override
    public boolean deleteByIdJsMicrocircle(Integer microcircleId) {
        return jms.deleteByIdJsMicrocircle(microcircleId);
    }

    @Override
    public boolean addJsMicrocircle(JsMicrocircle layForm) {
        return jms.addJsMicrocircle(layForm);
    }

    @Override
    public JsMicrocircle getJsMicrocircle(Integer userId) {
        return jms.getJsMicrocircle(userId);
    }

    @Override
    public boolean updateJsMicrocircle(JsMicrocircle layForm) {
        return jms.updateJsMicrocircle(layForm);
    }

    @Override
    public List<JsMicrocircle> getJsMicrocircleByStatus(JsMicrocircle param) {
        return jms.getJsMicrocircleByStatus(param);
    }

    @Override
    public List<JsMicrocircle> getJsMicrocircleSuperSearch(JsMicrocircle param) {
        return jms.getJsMicrocircleSuperSearch(param);
    }

    @Override
    public int countMicroCircleComment(Integer commodityId) {
        return jms.countMicroCircleComment(commodityId);
    }

    @Override
    public Integer countDetails(Integer details) {
        return jms.countDetails(details);
    }

    @Override
    public List<JsMicrocircle> getByIdAllJsMicrocircle(JsMicrocircle layForm) {
        return jms.getByIdAllJsMicrocircle(layForm);
    }

    @Override
    public int getAllMicroCircleUpperCount() {
        return jms.getAllMicroCircleUpperCount();
    }
}
